package com.fr.web;
import java.util.List;
import java.util.Map;
import com.fr.dao.ServiceTypeDao;
import com.fr.model.ServiceType;
import net.sf.json.JSONArray;

@SuppressWarnings("serial")
public class GetNavTopItems extends JsonServlet {
	@Override
	public String dealInput(Map<String, String[]> input) {
		ServiceTypeDao serviceTypeDao = new ServiceTypeDao();
		List<ServiceType> serviceTypes = serviceTypeDao.getAll();
		System.out.println(JSONArray.fromObject(serviceTypes));
		return JSONArray.fromObject(serviceTypes).toString();
	}
}